-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add unit-test to check consistency of Notice field names. #1345
Conversation
…with other ClassGraph methods.
…ecking against an allow-list of existing field names.
@isabelle-dr curious to get your thoughts on this |
✅ Rule acceptance tests passed. |
Great addition! Can we see what it looks like when the test fails? |
Ideally, a developer would run In this example, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✅ Rule acceptance tests passed. |
…lityData#1345) * Add a unit-test that enforces consistency of Notice field names by checking against an allow-list of existing field names. Co-authored-by: David Gamez <1192523+davidgamez@users.noreply.github.com>
…lityData#1345) * Add a unit-test that enforces consistency of Notice field names by checking against an allow-list of existing field names. Co-authored-by: David Gamez <1192523+davidgamez@users.noreply.github.com>
While working on better alignment of code and documentation as part of #1324, I fixed a few inconsistent field names (e.g.
filename
vsfileName
). But I also wonder if we could catch these inconsistencies earlier. This PR provides a unit-test that checks allNotice
field names against a manually curated allow-list.Any time a new field name is added, this unit-test will fail. When that happens, we hope the author will do one of the following:
Please make sure these boxes are checked before submitting your pull request - thanks!
gradle test
to make sure you didn't break anything